package myschool.dao;

import myschool.entity.Subject;

import java.util.List;

//代表s_subject表的所有操作
public interface SubjectDao {
    public int add(Subject s);
    public int update(Subject s);
    public int del(long id);
    /**
     * 根据主键读取单个对象
     * @param id
     * @return
     */
    public Subject get(long id);
    /**
     * 根据课程名称模糊查找
     * @param sname
     * @return
     */
    public List<Subject> search(String sname);
}
